package com.allwees.bs.core.model.constant;

/**
 *
 *
 * @author yangylsky
 * @since 2019-11-18
 *
 */
public class CacheName {
	//////////////////////////////初始化相关//////////////////////////////
	/**
	 * 类目缓存
	 */
	public static final String APP_CATEGORY = "app:category";

	public static final String APP_AGGREGATE = "app:aggregate";

	//////////////////////////////PRODUCT//////////////////////////////
	/**
	 * 按热搜词缓存商品
	 */
	public static final String PROD_SEARCH_KEY_PAGE = "product:search-key";
	/**
	 * 按类目缓存商品
	 */
	public static final String PROD_CATEGORY_PAGE = "product:page-by-category";
	/**
	 * A端配置的热搜词，用于在搜索框下方展示
	 */
	public static final String HOT_WORDS_PREFIX = "product:hotwords";
	/**
	 * 热销产品
	 */
	public static final String PROD_PRODUCT_HOTS = "product:marketing";

	public static final String PROD_PRODUCT_FLASH = "product:flash";

	public static final String PROD_PRODUCT_BELOW5 = "product:below5";
	/**
	 * ProductDetailsDTO 缓存
	 */
	public static final String PROD_PRODUCT_BY_UUID = "product:product-by-uuid";

	public static final String PROD_PRODUCT_MODEL_BY_UUID = "product:product-model-by-uuid";

	/**
	 * SkuDTO缓存
	 */
	public static final String PROD_SKU_BY_UUID = "product:sku-by-uuid";

	/**
	 * ProductDetailsDTO(带sku) 缓存
	 */
	public static final String PROD_PRODUCT_DETAILS = "product:product-details";
	/**
	 * ProductDetailsDTO(带sku) 缓存
	 */
	public static final String PROD_PRODUCT_RELATED = "product:related";
	/**
	 * 禁止加价商品id缓存
	 */
	public static final String PROD_FORBID_ADJUST_PRICE = "product:price-adjust-forbid";

	//////////////////////////////OPS//////////////////////////////
	/**
	 * 广告相关缓存
	 */
	public static final String OPS_ADS = "ops:ads";

	//////////////////////////////USER//////////////////////////////
	/**
	 * 初始化邮箱
	 */
	public static final String USER_INIT_EMAIL_VERIFY_CODE = "user:code:init";

	/**
	 * 修改密码
	 */
	public static final String USER_CHANGE_PWD_VERIFY_CODE = "user:code:cpwd";

	/**
	 *
	 */
	public static final String USER_BUY_PRODUCT_NUM = "user:buy:product";

	/**
	 * 用户活跃度hash key
	 */
	public static final String USER_ACTIVE_KEY_PREFIX = "user:active:%s";

	/**
	 * 失效的jwt
	 */
	public static final String USER_TOKEN_IVALID_PATTERN = "token:invalid:%s:%s";

	///////////////////////////物流/////////////////////////////////

	public static final String LOGIST_PROVIDER = "logist:provider";

	///////////////////////////ORDER/////////////////////////////////


	public static final String AB_ORDER_STATISTICS_WAIT_PAY_COUNT = "order:statistics:wait-pay-count";

	public static final String AB_ORDER_STATISTICS_WAIT_SHIP_COUNT = "order:statistics:wait-ship-count";

	public static final String AB_ORDER_STATISTICS_WAIT_REVIEW_COUNT= "order:statistics:wait-review-count";

	public static final String AB_ORDER_STATISTICS_REFUNDED_COUNT= "order:statistics:refunded-count";

	public static final String AB_ORDER_STATISTICS_YESTERDAY_DEAL_AMT= "order:statistics:yesterday-deal-amt";

	public static final String AB_ORDER_STATISTICS_TODAY_DEAL_AMT= "order:statistics:today-deal-amt";

	public static final String AB_ORDER_STATISTICS_TOTAL_DEAL_AMT= "order:statistics:total-deal-amt";

	public static final String AB_ORDER_STATISTICS_REFUNDED_DEAL_AMT= "order:statistics:refunded-deal-amt";
}